FROM ccr.ccs.tencentyun.com/tjhb/docker-django2:latest

ARG PROJECT=daimonblogv3

COPY ./requirements.txt /data/prd/${PROJECT}/requirements.txt
RUN pip install -r /data/prd/${PROJECT}/requirements.txt

WORKDIR /data/prd/${PROJECT}

COPY docker-entrypoint.sh ./
COPY locale .
COPY *.py ./
COPY _templates .
COPY _static .
COPY blog .
COPY *.rst ./

RUN /usr/local/bin/ablog build

ENTRYPOINT ["/data/prd/daimonblogv3/docker-entrypoint.sh"]

#STOPSIGNAL SIGINT
EXPOSE 8000
